<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>企业信息</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			//$("#name").focus();
			$("#inputForm").validate({
				submitHandler: function(form){
					loading('正在提交，请稍等...');
					form.submit();
				},
				errorContainer: "#messageBox",
				errorPlacement: function(error, element) {
					$("#messageBox").text("输入有误，请先更正。");
					if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
						error.appendTo(element.parent().parent());
					} else {
						error.insertAfter(element);
					}
				}
			});
		});
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li><a href="${ctx}/sys/commonUser/invoiceInfoList">开票信息列表</a></li>
		<li class="active"><a href="${ctx}/sys/commonUser/invoiceInfoDetail?id=${invoiceInfo.id}">发票详情<shiro:hasPermission name="sys:yonguser:user:edit">${not empty user.id?'修改':'添加'}</shiro:hasPermission><shiro:lacksPermission name="sys:yonguser:user:edit">查看</shiro:lacksPermission></a></li>
	</ul><br/>
	<form:form id="searchForm" modelAttribute="invoiceInfo" action="${ctx}/sys/commonUser/invoiceInfoList" method="post" class="breadcrumb form-search">
	<c:if test="${invoiceInfo.invoiceType==1}">
		<div class="control-group">
			<label class="control-label">增值税专用发票信息展示：</label>
		</div>
		<div class="control-group">
			<label class="control-label">公司名称:${invoiceInfo.company}</label>
		</div>
		<div class="control-group">
			<label class="control-label">开票地址:${invoiceInfo.address}</label>
		</div>
		<div class="control-group">
			<label class="control-label">账户:${invoiceInfo.account}</label>
		</div>
		<div class="control-group">
			<label class="control-label">开户行:${invoiceInfo.blank}</label>
		</div>
		<div class="control-group">
			<label class="control-label">纳税人识别号:${invoiceInfo.dutyCode}</label>
		</div>
		<div class="control-group">
			<label class="control-label">发票邮寄地址:${invoiceInfo.receiveAddress}<span style="margin-left:50px;">${invoiceInfo.receiveName}</span><span style="margin-left:50px;">${invoiceInfo.receivePhone}</span></label>
		</div>
	</c:if>
	<c:if test="${invoiceInfo.invoiceType==2}">
		<c:if test="${empty invoiceInfo.company}">
			<div class="control-group">
				<label class="control-label">增值税普通发票信息展示（个人）：</label>
			</div>
			<div class="control-group">
				<label class="control-label">发票抬头:${invoiceInfo.invoiceTitle}</label>
			</div>
			<div class="control-group">
				<label class="control-label">发票邮寄地址:${invoiceInfo.receiveAddress}<span style="margin-left:50px;">${invoiceInfo.receiveName}</span><span style="margin-left:50px;">${invoiceInfo.receivePhone}</span></label>
			</div>
		</c:if>
		<c:if test="${not empty invoiceInfo.company}">
			<div class="control-group">
				<label class="control-label">增值税普通发票信息展示（公司）：</label>
			</div>
			<div class="control-group">
				<label class="control-label">公司名称:${invoiceInfo.company}</label>
			</div>
			<div class="control-group">
				<label class="control-label">纳税人识别号:${invoiceInfo.dutyCode}</label>
			</div>
			<div class="control-group">
				<label class="control-label">发票邮寄地址:${invoiceInfo.receiveAddress}<span style="margin-left:50px;">${invoiceInfo.receiveName}</span><span style="margin-left:50px;">${invoiceInfo.receivePhone}</span></label>
			</div>
		</c:if>
	</c:if>
	<div class="form-actions">
		<input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
	</div>
	</form:form>
</body>
</html>